<?php foreach ($langs as $lang) :?>

<tr>
    <td>
       <?= $lang['name']?>
    </td>
    <td>
        <?= $lang['shorthand']?>
    </td>
    <td>
        <?= TimeUtil::showtime($lang["createtime"] , TimeUtil::TIME_ZONE_GMT8) ?>
    </td>

    <td>

        <?php if ($project_user_relation['role'] != AppConstants::PROJECT_ROLE_INTERPRETER) :?>

        <a href="javascript:deleteLang(<?=$lang['id']?>, '<?=$lang['name']?>')" class="btn btn-danger btn-sm"><i class="fa fa-trash"></i> 删除 </a>
        <a href="javascript:openLangDialog('edit', <?=$lang['id']?>)" class="btn btn-white btn-sm"><i class="fa fa-pencil"></i> 编辑 </a>
        <?php  else: ?>
             --
        <?php endif;?>
    </td>
</tr>
<?php endforeach;?>